package day30ver2;

public class ThreadEx extends Thread {



  String name;
  
  public ThreadEx(String name){ this.name = name;
  
  try{ this.start(); }catch(Exception ex){} }
  
  public void run(){ for(int i= 1; i<=100; i++){ System.out.println(name +
  ":"+i); try{ Thread.sleep(10);
  
  }catch(Exception ex){}
  
  } }
  
  public static void main(String[] args) { 
	  
	  ThreadEx t1= new ThreadEx("첫번째");
  ThreadEx t2= new ThreadEx("두번째");
  ThreadEx t3= new ThreadEx("세번째"); 
  ThreadEx t4= new ThreadEx("네번째");
  
  
 }
  
  }
 